<?php
/**
 * Created by PhpStorm.
 * User: 11509
 * Date: 2021/3/16
 * Time: 15:10
 */

namespace app\admin\controller;

use app\admin\logic\UsersLogic;
use app\admin\model\Gorder;
use app\admin\model\Users;
use app\BaseController;
use think\facade\Db;
use think\facade\Request;
use think\facade\View;

class User extends BaseController
{
    public function user()
    {
        $sel=Users::getUsersSel();

        View::assign('sel',$sel);

        return View::fetch();
    }


    public function userAdd()
    {

        if (Request::isPost()){
            $param = Request::param();

            $data = UsersLogic::getUserData($param);
//            list($res,$msg)=Users::addUsersInfo($data);

        }

        return View::fetch();
    }

    public function userEdit()
    {

        return View::fetch();
    }
    public function auth()
    {
        return View::fetch();
    }
    public function authAdd()
    {
        return View::fetch();
    }
}